#!/bin/bash
dict=$1
imageDict=$2
version=$3

rm -rf /home/jenkins/docker/$dict/web-manage
cp -r /var/jenkins_home/workspace/$dict/heatedloan-frontend/web-manage  /home/jenkins/docker/$dict/

docker login -u heatedloan@126.com -p HeatedLoan123 registry-internal.cn-hangzhou.aliyuncs.com
images_name=registry-internal.cn-hangzhou.aliyuncs.com/heatedloan/$imageDict:$version"_test"

docker build -t  $images_name /home/jenkins/docker/$dict/

docker push  $images_name
docker rmi -f $images_name
